<!-- TodoEdit.vue -->
<template>
  <div class="card mt-3 mb-5">
    <div class="card-body">
      <div class="form-group">
        <textarea
          id="title"
          class="form-control font-weight-bold"
          rows="1"
          v-model="task.title">
        </textarea>
        <textarea
          id="content"
          class="form-control mt-1"
          rows="3"
          v-model="task.content">
        </textarea>
      </div>
    </div>
    <div class="card-footer text-muted">
      创建于：{{ task.createdAt }}
    </div>
  </div>
</template>

<script>
export default {
  name: "Todoedit",
  props: {
    task: {
      type: Object
    }
  }
}
</script>
